package com.woniuxy.member.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: 曾令忠
 * @Description:
 * @Date: 2020/7/9 0009-下午 6:49
 */
@RestController
public class MemberController {
    @RequestMapping("/subLogin")
    public Map subLogin(String uname,String pwd){
        Map map = new HashMap();
        if (uname.equals("zhangsan")&&pwd.equals("123")){
            map.put("code",200);
            map.put("msg","success");
            map.put("data","uname");
        }else{
            map.put("code",500);
            map.put("msg","fail");

        }
        return map;
    }
}
